package com.yky.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 内审人员信息
 * 
 * @author vimesly
 * 
 */

@SuppressWarnings("serial")
@Entity
@Table(name = "work_organization_records_internal_audit")
public class OrganizationRecordsInternalAudit implements Serializable {

	private Integer id;
	private String memberName; // 内审人员姓名
	private String specialty; // 专业
	private String department; // 工作部门

	private OrganizationRecords organizationRecords;
	
	private String username;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "member_name")
	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	@Column(name = "specialty")
	public String getSpecialty() {
		return specialty;
	}

	public void setSpecialty(String specialty) {
		this.specialty = specialty;
	}

	@Column(name = "department")
	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	@ManyToOne
	@JoinColumn(name = "organization_records_id")
	public OrganizationRecords getOrganizationRecords() {
		return organizationRecords;
	}

	public void setOrganizationRecords(OrganizationRecords organizationRecords) {
		this.organizationRecords = organizationRecords;
	}
	
	@Column(name = "username")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}
